package com.xgq.drink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author xgq
 * @since 2025-03-04
 */
@Getter
@Setter
@TableName("order_product")
public class OrderProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_product_id", type = IdType.AUTO)
    private Long orderProductId;

    private Long orderId;

    private Long productId;

    private String productName;

    private BigDecimal productPrice;

    private Integer productQuantity;

    private Long discountId;

    private BigDecimal currentPrice;

    private LocalDateTime createdAt;
    private Long attributeId;
    @TableField(exist = false)
    private AttributeProduct attributeProduct;
    @TableField(exist = false)
    private Product productDetail;
}
